<!--
Author: Quan Van Sinh
Email : sinhvnb@vietnambiz.com
Mobile: 0972405165
-->
<?php include ADMIN_INCLUDE_DIR."/header.php";?>
<script language="javascript" type="text/javascript">
    function submitFormAddNews(submitType){
        if(submitType=='exit'){
            $("#submitType").val('exit');
            $("#submitFrmNewsAdd").click();
        }
    }
</script>
<div class="container_l">
    <form name="formNewsAddCategory" method="POST" action="" enctype="multipart/form-data">
        <div class="title_user"><img src="images/icon1.gif" />Video</div>
        <div class="table_user">
            <div class="table_user_in2">
                <?php
                show_error();
                show_success();
                ?>
                <fieldset>
                    <legend accesskey="N">Thêm mới video</legend>
                    <div class="lineaddnew">
                        <div style="width:70%;float:left;">

                            <div style="display:none;" id="removeFile"></div>
                            <div class="lineform">
                                <div class="divlabel_news">Tiêu đề: <font color="#FF0000">*</font></div>
                                <div class="divform">
                                    <input type="text" name="title" value="" />
                                </div>
                            </div>
                            <div class="lineform">
                                <div class="divlabel_news">Danh mục: <font color="#FF0000">*</font></div>
                                <div class="divform">
                                    <select name="cat_id" style="width:99%;">
                                        <?php
                                        $arrNewsCat = listAllNewsCategory($parent_id = 0);
                                        for($i=0;$i<count($arrNewsCat);$i++) {
                                            ?>
                                        <option <?php setSelectedBoxValue($_REQUEST['cat_id'], $arrNewsCat[$i]['cat_id']);?> value="<?php echo $arrNewsCat[$i]['cat_id'];?>"><?php echo $arrNewsCat[$i]['cat_title'];?></option>
                                        <?php
                                        }
                                        ?>
                                    </select>
                                </div>
                            </div>
                            <div class="lineform">
                                <div class="divlabel_news">Mã nhúng: <font color="#FF0000">*</font></div>
                                <div class="divform">
                                    <textarea name="embed_code" rows="4" cols="20"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="spacer1"><span></span></div>
                </fieldset>
                <div class="linesubmit">
                    <input type="hidden" name="submitType" id="submitType" value="">
                    <input type="submit" name="submitFrmNewsAdd" id="submitFrmNewsAdd" value="Lưu lại" class="button" />
                    <input type="button" name="submitFrmNewsAddAndExit" onclick="document.location='?module=video';" value="Thoát" class="button" />
                </div>
            </div>
        </div>
    </form>
</div>
<?php
include "inc/right.php";
include ADMIN_INCLUDE_DIR."/footer.php";
?>